package com.msb.mall.thirdPart.constants;

import java.util.Arrays;
import java.util.List;

/**
 * 上传常量
 */
public class UploadConstants {

    /** exec 创建linux服务器文件目录使用 */
    public static final String UPLOAD_EXEC = "exec";
    /** sftp */
    public static final String UPLOAD_SFTP = "sftp";
    /** common目录
     * 正在使用的文件目录 useFile
     * 不使用的文件目录 nouseFile
     */
    public static final String UPLOAD_USE_PATH_COMMON = "/mydata/myfile/useFile/common";
    public static final String UPLOAD_USE_PATH_PRODUCT = "/mydata/myfile/useFile/product";
    public static final String UPLOAD_USE_PATH_ORDER = "/mydata/myfile/useFile/order";
    public static final String UPLOAD_USE_PATH_COUPON = "/mydata/myfile/useFile/coupon";
    public static final String UPLOAD_USE_PATH_MEMBER = "/mydata/myfile/useFile/member";
    public static final String UPLOAD_USE_PATH_WARE = "/mydata/myfile/useFile/ware";
    public static final String UPLOAD_NOUSE_PATH_COMMON = "/mydata/myfile/nouseFile/common";
    public static final String UPLOAD_NOUSE_PATH_PRODUCT = "/mydata/myfile/nouseFile/product";
    public static final String UPLOAD_NOUSE_PATH_ORDER = "/mydata/myfile/nouseFile/order";
    public static final String UPLOAD_NOUSE_PATH_COUPON = "/mydata/myfile/nouseFile/coupon";
    public static final String UPLOAD_NOUSE_PATH_MEMBER = "/mydata/myfile/nouseFile/member";
    public static final String UPLOAD_NOUSE_PATH_WARE = "/mydata/myfile/nouseFile/ware";

    /**
     * 模块编码
     */
    public static final String UPLOAD_TYPE_COMMON = "common";
    public static final String UPLOAD_TYPE_PRODUCT = "product";
    public static final String UPLOAD_TYPE_ORDER = "order";
    public static final String UPLOAD_TYPE_COUPON = "coupon";
    public static final String UPLOAD_TYPE_MEMBER = "member";
    public static final String UPLOAD_TYPE_WARE = "ware";

    /** 单文件上传 */
    public static final String is_single_file = "1";

    /** 上传操作类型 */
    public static final String UPLOAD_OPR_ADD = "0";
    public static final String UPLOAD_OPR_UPDATE = "1";
    public static final String UPLOAD_OPR_DELETE = "2";
    public static final List<String> UPLOAD_OPR_LIST = Arrays.asList(UPLOAD_OPR_ADD, UPLOAD_OPR_UPDATE, UPLOAD_OPR_DELETE);

}
